package com.tssf.car_manage.service;

import com.tssf.car_manage.entity.Admin;

import java.util.List;

public interface AdminService {





    List<Admin> getAllAdmins();

    List<Admin> getAdminById(int id);

    int addAdmin(Admin admin);

    int updateAdmin(Admin admin);

    int deleteAdmin(int id);

    // 新增搜索方法
    List<Admin> searchAdmins(String key);


    List<Admin> getAdminByUsername(String username);




}
